<div class="scroll-botton" style="padding: 0 5px">
  <a class="left" (click)="scrollleft()"><i class="fa fa-caret-left"></i></a>
  <a class="right" (click)="scrollright()"><i class="fa fa-caret-right"></i></a>
</div>
<div class="tabs">
  <ul [ngStyle]="{'width':150*NavList.List.length+'px'}">
    <li *ngFor="let m of NavList.List;let i = index"
        [ngClass]="{'active':i==NavList.Active,'disconnected':!m.connected, 'hidden': m.closed != false}"
        id="termnav-{{i}}" (click)="setActive(i)" (dblclick)="m.edit=true;setActive(i)">
      <span *ngIf="!m.edit">{{m.nick | truncatechars:25 }}</span>
      <input *ngIf="m.edit" [(ngModel)]="m.nick" (blur)="m.edit=false" (keyup.enter)="m.edit=false" autofocus="true"/>
      <a class="close" (click)="close(m,i)">&times;</a>
    </li>
  </ul>
</div>
